﻿import validation = require('./Validation');
import zip = require('./ZipCodeValidator');
import letters = require('./LettersOnlyValidator');
var strings = ['Hello', '98052', '101'];
var validators: { [s: string]: validation.StringValidator; } = {};
validators["Zip Code"] = new zip.ZipCodeValidator();
validators['Letters Only'] = new letters.LetterOnlyValidator();
strings.forEach(s=> {
    for (var name in validators)
    {
        console.log('' + s + ' ' +
            (validators[name].isAcceptable(s)?'matches':"does not match"+name)
            );
    }
    
});